package com.my.study.designPatterns.decoratePattern;

public class StarbuzzCoffee {

    public static void main(String[] args) {


        Beverage beverage = new EspressoBeverage();
        System.out.println(beverage.getDescription() + " price: $" + beverage.cost());

        beverage = new Mocha(beverage);
        //System.out.println("Expresso description: " + beverage.getDescription() + " price: $" + beverage.cost());
        beverage = new Mocha(beverage);
        //System.out.println("Expresso description: " + beverage.getDescription() + " price: $" + beverage.cost());
        beverage = new Whip(beverage);
        System.out.println("Expresso description: " + beverage.getDescription() + " price: $" + beverage.cost());



        Beverage beverage1 = new HouseBlendBeverage();
        beverage1 = new Mocha(beverage1);
        beverage1 = new Soy(beverage1);
        beverage1 = new Whip(beverage1);
        System.out.println("HouseBlend description: " + beverage1.getDescription() + " price: $" + beverage1.cost());


    }
}
